﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;

namespace Defero.Model
{
    public class ServiceDependencyValidator : AbstractValidator<ServiceDependency>
    {
        public ServiceDependencyValidator() 
        {
            RuleFor(e => e.Id).NotNull();
            RuleFor(e => e.Product).NotEmpty();
            RuleFor(e => e.Service).NotEmpty();
        }
    }
}
